<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Login extends CI_Controller {

    // 构造方法
    /**
     * Login constructor.
     */
    function __construct() {
        parent::__construct();
        $this->load->model('login_model');
        $this->load->model('http_model');
    }
    /**
     * Maps to the following URL
     * 		http://example.com/index.php/login
     *	- or -
     * 		http://example.com/index.php/login/index
     */
    public function index()
    {
        $this->load->view('login/login');
    }


    /**
     *
     */
    public function doLogin()
    {
        //$test = $this->input->get('test',true);

        //$ret = $this->login_model->test($test);
        //$ret = $this->http_model->filmIndex();

        //echo var_dump($ret);
//        echo json_encode($ret);
        echo '{"name":"lisi"}';
    }
}